package com.ujoin.action.follow;

import org.springframework.beans.factory.annotation.Autowired;

import com.ujoin.bean.Follow;
import com.ujoin.service.FollowService;
import com.ujoin.util.ActionEnhanced;

public class DeleteFollowAction extends ActionEnhanced {

	private Follow follow;
	
	public Follow getFollow() {
		return follow;
	}

	public void setFollow(Follow follow) {
		this.follow = follow;
	}

	@Autowired
	private FollowService followService;
	
	@Override
	public String execute() {
		setJson(followService.deleteFollow(follow));
		return SUCCESS;
	}
}
